package com.ldzy.order.service;

import com.ldzy.common.pojo.Order;
import com.ldzy.order.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderService {
    @Autowired
    OrderMapper orderMapper;
    public boolean newOrder(Order order){
        int i = orderMapper.newOrder(order);
        if(i>0) return true;
        else return false;
    }
}
